package com.kust.smarthome.web.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kust.smarthome.web.dto.CommodityDto;
import com.kust.smarthome.web.mapper.CollectionMapper;
import com.kust.smarthome.web.model.Collection;
import com.kust.smarthome.web.service.ICollectionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CollectionServiceImpl extends ServiceImpl<CollectionMapper, Collection> implements ICollectionService {

    @Resource
    CollectionMapper collectionMapper;

    @Override
    public List<CommodityDto> findList(Integer userId) {
        return collectionMapper.findList(userId);
    }
}
